package cn.fengzhilun.javase.day09;

public class Crud {

}

interface Inserter{
	
	void insert();
}

interface Deleter {
	void delete();
	
	
}
 interface Updater{
	 
	 void update();
 }
 interface Seacher{
	 
	 void serach();
 }
 interface Dao extends Inserter,Deleter,Updater,Seacher{
	 
 }
 class DbDao implements Dao{

	@Override
	public void insert() {
		System.out.println("insert..");
	}

	@Override
	public void delete() {
		
	}

	@Override
	public void update() {
		
	}

	@Override
	public void serach() {
		
	}
 }
 class DbReadDeleteDao implements Inserter,Deleter{

	@Override
	public void delete() {
		System.out.println("调用了删除方法。");
	}

	@Override
	public void insert() {
		System.out.println("调用了插入方法");
	}
	 
	 
 }